package com.example.common.entity;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangkai
 * @since 2019-06-04
 */
@TableName("tbl_common_user")
public class CommonUser extends Model<CommonUser> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "ID", type = IdType.AUTO)
	private Integer id;

	/**
	 * 登陆ID
	 */
	@TableField("ACCOUNT")
	private String account;

	/**
	 * 真实姓名
	 */
	@TableField("REAL_NAME")
	private String realName;

	/**
	 * 身份証
	 */
	@TableField("ID_CARD")
	private String idCard;

	/**
	 * 手机
	 */
	@TableField("PHONE")
	private String phone;

	/**
	 * 年齡
	 */
	@TableField("AGE")
	private Integer age;

	/**
	 * 性别，0为女，1为男
	 */
	@TableField("SEX")
	private Integer sex;

	/**
	 * 密码
	 */
	@JSONField(serialize = true)
	@TableField("PASSWORD")
	private String password;

	/**
	 * 盐值
	 */
	@JSONField(serialize = true)
	@TableField("SALT")
	private String salt;

	/**
	 * 账号状态
	 */
	@TableField("START")
	private Integer start;

	/**
	 * 使用設備
	 */
	@TableField("EQUIPMENT")
	private Integer equipment;

	/**
	 * 创建日期
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@TableField("CREATE_DATE")
	private Date createDate;

	/**
	 * 创建人
	 */
	@TableField("CREATE_USER_ID")
	private Integer createUserId;

	/**
	 * 备用字段
	 */
	@TableField("RESERVE_FIELD1")
	private String reserveField1;

	/**
	 * 备用字段
	 */
	@TableField("RESERVE_FIELD2")
	private String reserveField2;

	/**
	 * 备用字段
	 */
	@TableField("RESERVE_FIELD3")
	private String reserveField3;

	/**
	 * 备用字段
	 */
	@TableField("RESERVE_FIELD4")
	private String reserveField4;

	/**
	 * 备用字段
	 */
	@TableField("RESERVE_FIELD5")
	private String reserveField5;

	/**
	 * 备用字段
	 */
	@TableField("RESERVE_FIELD6")
	private String reserveField6;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getEquipment() {
		return equipment;
	}

	public void setEquipment(Integer equipment) {
		this.equipment = equipment;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Integer createUserId) {
		this.createUserId = createUserId;
	}

	public String getReserveField1() {
		return reserveField1;
	}

	public void setReserveField1(String reserveField1) {
		this.reserveField1 = reserveField1;
	}

	public String getReserveField2() {
		return reserveField2;
	}

	public void setReserveField2(String reserveField2) {
		this.reserveField2 = reserveField2;
	}

	public String getReserveField3() {
		return reserveField3;
	}

	public void setReserveField3(String reserveField3) {
		this.reserveField3 = reserveField3;
	}

	public String getReserveField4() {
		return reserveField4;
	}

	public void setReserveField4(String reserveField4) {
		this.reserveField4 = reserveField4;
	}

	public String getReserveField5() {
		return reserveField5;
	}

	public void setReserveField5(String reserveField5) {
		this.reserveField5 = reserveField5;
	}

	public String getReserveField6() {
		return reserveField6;
	}

	public void setReserveField6(String reserveField6) {
		this.reserveField6 = reserveField6;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
